﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Jo.PropertyManagement.Domain.Entity;


namespace PropertyManagement.Domain.Mapping.FluentHibernate
{
    public class CustomerMap : ClassMap<Customer>
    {
        public CustomerMap()
        {
            Id(x => x.Id).Column("ID");
            Map(x => x.FirstName);//.Column("FIRST_NAME");
            Map(x => x.LastName);//.Column("LAST_NAME");
            Map(x => x.Email);//.Column("EMAIL");
            Map(x => x.MobileNo);//.Column("MOBILE_PHONE_NO");
            Map(x => x.WorkPhone);//.Column("OFFICE_PHONE_NO");
            Map(x => x.IsDeleted);//.Column("ACTIVE");
            Map(x => x.HomePhone);//.Column("HOME_PHONE_NO");
            Map(x => x.CreatedDate);//.Column("CREATED_DATETIME");
            Map(x => x.PrimaryContactNo);
        }
    }
}
